package org.system.core.mapper.system;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.system.core.domain.entity.SysMenu;

import java.util.List;

/**
* @author baoRoot
* @description 针对表【sys_menu(菜单权限表)】的数据库操作Mapper
* @createDate 2024-11-05 14:17:49
* @Entity org.system.core.domain.entity.SysMenu
*/
@Mapper
public interface SysMenuMapper {
    int deleteMenuById(Long menuId);
    int hasChildByMenuId(Long menuId);
    int updateMenu(SysMenu menu);
    int insertMenu(SysMenu menu);
    SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
    List<SysMenu> selectMenuListByUserId(SysMenu menu);
    List<String> selectMenuPermsByRoleId(Long roleId);
    List<String> selectMenuPermsByUserId(Long userId);
    List<SysMenu> selectMenuTreeAll();
    List<SysMenu> selectMenuTreeByUserId(Long userId);
    List<SysMenu> selectMenuList(SysMenu menu);
    SysMenu selectMenuById(Long menuId);
    List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
}




